package com.wshare.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wshare.dao.interfaces.IAccountDao;
import com.wshare.entity.Account;
import com.wshare.service.interfaces.IAccountService;

@Service
public class AccountServiceImpl implements IAccountService{

	@Autowired
	IAccountDao accountDao;
	
	@Override
	public List<Account> getByCol(String col, Object val) {
		return accountDao.getByCol(col, val);
	}

	@Override
	public List<Account> getAll() {
		return accountDao.getAll();
	}

	@Override
	public int addAccount(Account acc) {
		return accountDao.addAccount(acc);
	}

}
